import java.util.stream.Stream;

/**
 * @ClassName Demo10
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 17:41
 * @ModifyDate 2022/8/14 17:41
 * @Version 1.0
 */
public class Demo10 {
    public static void main(String[] args) {
        Stream<String> stream = Stream.of("张三", "李四", "张伟");
        long count = stream.filter(s -> s.startsWith("张")).count();
        System.out.println(count);
    }
}
